﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FineUI;
using OnlineTestModel;

namespace OnlineTestUI
{
    public partial class _default : System.Web.UI.Page
    {
        #region Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["student"] == null)
            {
                PageContext.Redirect("login.aspx");
            }
            else
            {
                Students s = (Students) Session["student"];
                if (!IsPostBack)
                {
                    BindLeftTree();
                }
            }
            
        }

        #endregion
        private void BindLeftTree()
        {
            XmlDataSource1.DataFile = "./data/menuStudent.xml";
            leftTree.DataSource = XmlDataSource1;
            leftTree.DataBind();
        }
    }
}